package pack0621;

public class DemoA {
    public static void main(String[] args) {
        for (int i =0; i<4;i++){
            for (int a=0;a<3-i;a++){
                System.out.print(" ");
            }
            for (int b=0;b<2*i+1;b++)
                if (b==0||b==2*i)
                System.out.print("*");
                else
                System.out.print(" ");

            System.out.println();
        }
        for (int i=0;i<3;i++){
            for (int c=0; c<=i;c++){
                System.out.print(" ");
            }
            for (int d=0;d<5-2*i;d++)
                if (d==0||d==5-2*i-1)
                    System.out.print("*");
                else
                    System.out.print(" ");

            System.out.println();
        }
    }
}
